package com.simple.space.modules.exportexcel.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author xiongzhenchuan
 * @date 2020/11/30 15:15
 * @description
 */
@Data
@Table(name = "student")
public class Student implements Serializable {

    @Id
    @Column(name = "id")
    @ExcelProperty(index = 0 , value = "id")
    private int id;

    @Column(name = "name")
    @ExcelProperty(index = 1 , value = "姓名")
    private String name;

    @Column(name = "age")
    @ExcelProperty(index = 2 , value = "年龄")
    private int age;

    @Column(name = "grade")
    @ExcelProperty(index = 3 , value = "分数")
    private int grade;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }


}

